package edu.usm.roberge.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.HasData;

public class AirlinePriceView extends Composite {

	private static AirlinePriceViewUiBinder uiBinder = GWT
			.create(AirlinePriceViewUiBinder.class);

	interface AirlinePriceViewUiBinder extends
			UiBinder<Widget, AirlinePriceView> {
	}

	public AirlinePriceView() {
		initWidget(uiBinder.createAndBindUi(this));
		cellTable.addColumn(new TextColumn<String>() {
			@Override
			public String getValue(String object) {
				return object;
			}
		}, "Ticket Cost");
	}

	@UiField(provided=true) CellTable<String> cellTable = new CellTable<String>();

	public HasData<String> getCellList() {
		return cellTable;
	}
}
